package com.sunjian.dao.db1;

import com.sunjian.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Qualifier;

import java.util.List;

/**
 * @author sunjian
 * @date 2021/12/2 21:47
 */
@Mapper
@Qualifier("db1SqlSessionTemplate")
public interface UserDao {
    @Select("SELECT * FROM user")
    List<User> queryALLUser();
    @Select("SELECT * FROM user WHERE id = #{id}")
    User findUserByName(int id);
}
